package xyz.zhzby.cyzx.cms.service;

import xyz.zhzby.cyzx.cms.dto.response.ChannelResponse;
import xyz.zhzby.cyzx.cms.dto.response.Info;
import xyz.zhzby.cyzx.cms.entity.Channel;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文章分类分栏（个人设置） 服务类
 * </p>
 *
 * @author zby
 * @since 2021-12-10
 */
public interface IChannelService extends IService<Channel> {

    void createChannel(Channel channel);

    RestResponse<String> updateChannel(Channel channel);

    ChannelResponse getChannelById(Long channelID);

    RestResponse<List<ChannelResponse>> getAllChannels();

    RestResponse<String> deleteChannel(Long channelId);

    List<Info> getLinkChannelsByArticleID(Long articleID);
}
